package com.smt.modules.bus.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import com.smt.common.base.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author murong
 * @email 981620741@qq.com
 * @date 2018-11-16 11:47:30
 */
@Data
@TableName("bus_message_handle")
public class MessageHandleEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 消息处理表id
	 */
	@TableId
	private Long id;
	/**
	 * 方式0全员 1 独立 2 阶段发送
	 */
	private Integer type;
	/**
	 * 详细内容
	 */
	private String msgBody;
	/**
	 * 发送者
	 */
	private Long sendUser;
	/**
	 * 接收者id字符串连接集合
	 */
	private Long receviceUser;
	/**
	 * 项目id
	 */
	private Long projectId;
	/**
	 * 阶段id
	 */
	private Integer stageId;
	/**
	 * 任务id
	 */
	private Long taskId;
	/**
	 * 子任务id
	 */
	private Long subTaskId;
	/**
	 * 创建日期
	 */
	private Date createTime;

	/**
	 * 消息状态 0 创建未读 1 已读
	 */
	private Integer status;

	/**
	 * 删除有效位
	 */
	private Integer isDelete;

	/**
	 * 项目名
	 */
	private String projectName;

	public MessageHandleEntity() {
	}

	public MessageHandleEntity(Long id, Integer type, String msgBody, Long sendUser, Long receviceUser, Long projectId, Integer stageId, Long taskId, Long subTaskId, Date createTime, Integer status, Integer isDelete, String projectName) {
		this.id = id;
		this.type = type;
		this.msgBody = msgBody;
		this.sendUser = sendUser;
		this.receviceUser = receviceUser;
		this.projectId = projectId;
		this.stageId = stageId;
		this.taskId = taskId;
		this.subTaskId = subTaskId;
		this.createTime = createTime;
		this.status = status;
		this.isDelete = isDelete;
		this.projectName = projectName;
	}
}
